package com.deep.auth.feign;

import com.deep.auth.model.vo.SocialUserVO;
import com.deep.auth.model.vo.UserLoginVO;
import com.deep.auth.model.vo.UserRegisterVO;
import com.deep.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 会员服务远程调用
 *
 * @author Deep
 * @date 2022/2/5
 */
@FeignClient(value = "mall-member")
public interface MemberFeignService {

    @PostMapping(value = "/member/member/register")
    R register(@RequestBody UserRegisterVO vo);

    @PostMapping(value = "/member/member/login")
    R login(@RequestBody UserLoginVO vo);

    @PostMapping(value = "/member/member/oauth2/login")
    R oauthLogin(@RequestBody SocialUserVO socialUser) throws Exception;

//    @PostMapping(value = "/member/member/weixin/login")
//    R weixinLogin(@RequestParam("accessTokenInfo") String accessTokenInfo);
}
